package com.duanjw.springcloud.openfeign.provider.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * sentinel 消费者
 *
 * @author duanjw
 */
@RestController
public class SleuthController {

    /**
     * hello
     * curl localhost:7007/hello/sleuth
     * @param value
     * @return
     */
    @GetMapping("hello/{value}")
    public String hello(@PathVariable String value) {
        return "hello:" + value;
    }
}
